import axios from "../sever/axios"  
export const getAll = (params) => axios.get('/build/getAll', {
  params:{
    ...params
  }
})
export const postAll = (name,address,intro,yunyingintro,top,bottom) => axios.post('/build/addBuild',  { 
  name,
  address,
  intro,
  yunyingintro,
  top,
  bottom 
})
export const delAll = (id) => axios.get('/build/delBuild', {
  params:{
    id
  }
})
export const getName = (name='') => axios.get('/build/name', {
  params:{
    name
  }
})